package com.treasure.mall.biz.entity.live;

import com.treasure.mall.biz.entity.BasePO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 *
 * <p> 直播间视频推送
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.live
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/9/11 11:00 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Entity
@Getter
@Setter
@Table(name = "zb_live_room_video")
@NoArgsConstructor
@Cacheable(false)
public class LiveRoomVideoPO extends BasePO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 主题标题
     */
    @Column(name = "title", length = 50)
    private String title;
    /**
     * 视频文件
     */
    @Column(name = "video_url", length = 200)
    private String videoUrl;
    /**
     * 默认是否全屏播放
     */
    @Column(name = "full_screen")
    private boolean fullScreen;
    /**
     * 默认是否静音
     */
    @Column(name = "mute")
    private boolean mute;

    /**
     * 是否推送
     */
    @Column(name = "pushed")
    private boolean pushed;

    /**
     * 推送时间
     */
    @Column(name = "push_time")
    private LocalDateTime pushTime;
    /**
     * 商家ID
     */
    @Column(name = "merchant_id")
    private Long merchantId;
    /**
     * 直播间ID
     */
    @Column(name = "room_id")
    private Long roomId;


}
